#ifndef CUSTOMINTVALIDATOR_H
#define CUSTOMINTVALIDATOR_H

#include <QIntValidator>
#include <QObject>

class CustomIntValidator : public QIntValidator
{
    Q_OBJECT
public:
    explicit CustomIntValidator(QObject *parent = nullptr);
    CustomIntValidator(int bottom, int top, QObject *parent);
    void setRange(int bottom, int top) override;
    virtual State validate(QString &s, int &n) const override;
    virtual void fixup(QString &input) const override;

};

#endif // CUSTOMINTVALIDATOR_H
